package me.yiyou.meihua.net

import me.yiyou.meihua.data.xinghuo.XHResponse
import me.yiyou.meihua.data.xinghuo.XingHuoX1
import okhttp3.ResponseBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Streaming

interface ApiService {

    /**
     * 提问接口
     */
    @POST("chat/completions")
    suspend fun chatCompletion(
        @Body request: XingHuoX1
    ): XHResponse


    /**
     * 提问接口,返回原始ResponseBody
     */
    @POST("chat/completions")
    @Streaming
    suspend fun chatStream(@Body request: XingHuoX1): ResponseBody
}